<?php
use yii\helpers\Html;

/* @var $this \yii\web\View */
/* @var $content string */
?>

<header class="main-header">

    <!-- <?= Html::a('<span class="logo-mini">cure</span><span class="logo-lg">' . Yii::$app->name . '</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?> -->
    <?= Html::a('<span class="logo-mini"></span><span class="logo-lg">' . Yii::$app->name . '</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>

    <nav class="navbar navbar-static-top" role="navigation">

        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button" style="width:50px;height:50px;font-size:21px;padding: 12px 15px;"></a>
        <script type="text/javascript">
            var menu_a = document.querySelector('.sidebar-toggle')
            var orientation = true
            menu_a.addEventListener('click', function () {
                if (orientation) {
                    menu_a.style.marginLeft = '-50px'
                    orientation = false
                } else {
                    menu_a.style.marginLeft = '0'
                    orientation = true
                }
            }, false)
        </script>
        <div class="pull-right" style="margin-top:8px;margin-right: 10px;">
            <?= Html::a(
                '退出登录',
                ['/site/logout'],
                ['data-method' => 'post', 'class' => 'btn btn-info', 'style' => 'background-color:#367fa9;border-color:#317398;color:#d7dde0']
            ) ?>
        </div>
    </nav>
</header>
